FROM openjdk:17-jdk-alpine

COPY /target/orderservice-*.jar /opt/orderservice/

VOLUME /opt/orderservice/

WORKDIR /opt/orderservice/

EXPOSE 8080

ENTRYPOINT java -jar /opt/orderservice/orderservice-*.jar